package com.zhangji.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 自定义LB算法
 * @Author: Zhang Ji
 * @Date: 2021/6/25 16:24
 * Created by IntelliJ IDEA.
 */
@Configuration
public class MyLBRule01 {
    @Bean
    public IRule myLBRule(){
        return new RandomRule();
    }
}
